const Mock = require("mockjs");
const Random = Mock.Random;
function getComponent() {
  return [
    //Title
    {
      fe_id: "c1",
      type: "questionTitle",
      title: "一行标题",
      isHidden: false,
      isLocked: false,
      props: {
        text: "基本信息",
        level: 1,
        isCenter: false,
      },
    },
    {
      fe_id: "c2",
      type: "questionInput",
      title: "输入框",
      isHidden: false,
      isLocked: false,
      props: {
        title: "姓名",
        placeholder: "请输入...",
      },
    },
    {
      fe_id: "c3",
      type: "questionInput",
      title: "输入框",
      isHidden: false,
      isLocked: false,
      props: {
        title: "年龄",
        placeholder: "请输入...",
      },
    },
    {
      fe_id: "c4",
      type: "questionRadio",
      title: "单选",
      isHidden: false,
      isLocked: false,
      props: {
        title: "性别",
        options: [
          { text: "男", value: "1" },
          { text: "女", value: "2" },
        ],
      },
    },
  ];
}

module.exports = getComponent;
